package com.ruoyi.college.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.domain.entity.SysRole;
import lombok.Data;

import java.io.Serializable;

/**
 * @author 明一G
 * @date 2023/3/28 9:55
 */
@Data
@TableName("th_teacher_info")
public class TeacherInfo extends BaseEntity implements Serializable {
	@TableId
	Long id;

	@Excel(name = "名称")
	String name;

	@Excel(name = "拼音")
	String spell;

	@Excel(name = "职工号")
	String username;

	String password;

	@Excel(name = "邮箱")
	String mail;

	@Excel(name = "手机号")
	String phone;

	Long majorId;

	@Excel(name = "是否评审",readConverterExp = "0=未评审,1=评审")
	String review;

	@Excel(name = "最多评审")
	Integer max;

	@Excel(name = "最少评审")
	Integer min;

	Major major;

	@Excel(name = "专业")
	@TableField(exist = false)
	String majorName;

	@TableField(exist = false)
	SysRole roles;

	@TableField(exist = false)
	Long[] roleIds;
}
